package einlesen;

import java.util.*;
import java.io.*;

public class Reader {

	public String readFile(String fileName) {

		File f = new File(fileName);
		Scanner sc = null;
		String read = "";

		try {
			sc = new Scanner(f);
		} catch (FileNotFoundException e) {
			System.out.println("File " + f + " not found.");
			System.exit(1);
		}
		while (sc.hasNextLine()) {
			read += sc.nextLine() + "\n";
		}
		sc.close();

		return read;
	}
}